import AdvancedSearch from "./AdvancedSearch";
import CommonForm from "./form/CommonForm";
import CommonTable from "./table/CommonTable";

const install = Vue => {
    Vue.component(AdvancedSearch.name, AdvancedSearch);
    Vue.component(CommonForm.name, CommonForm);
    Vue.component(CommonTable.name, CommonTable);
}

// 防止使用者直接以<script></script>方式引入
if (typeof window.Vue !== 'undefined') {
    install(Vue) // 直接通过script方式引入组件
}
export default {
    install
}